﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ray2010
{
    class DirectConnectionStrategy : Strategy
    {
        Ray2010 ray2010;
        TimeSpan strategyRuntime;
        double resultingLength;
        List<Node> resultingNodes;

        public DirectConnectionStrategy(Ray2010 ray2010)
        {
            this.ray2010 = ray2010;
        }

        public override void NodeConnectionStrategy(Node node)
        {
            DateTime startTime = DateTime.Now;

            resultingLength = 0.0;
            resultingNodes = null;



            strategyRuntime = DateTime.Now.Subtract(startTime);
        }

        public override void RegisterAtBenchmarker()
        {
            ray2010.strategybenchmarker.RegisterStrategy(this);
        }

        public override List<Node> GetResultingNodes()
        {
            return resultingNodes;
        }

        public override TimeSpan GetStrategyRuntime()
        {
            return strategyRuntime;
        }

        public override double GetResultingLength()
        {
            return resultingLength;
        }
    }
}
